<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增定时任务')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-bPrivateRoom-edit" th:object="${bPrivateRoom}">
        <input id="id" name="id" type="hidden" th:field="*{id}"/>
        <input type="hidden" name="createBy" th:value="${@permission.getPrincipalProperty('loginName')}">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">包间编码：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="code" id="code" th:field="*{code}" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">包间名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="name" id="name" th:field="*{name}" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <textarea id="remark" name="remark" class="form-control" th:field="*{remark}"></textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "repast/bPrivateRoom";

    $("#form-bPrivateRoom-edit").validate({
        onkeyup: false,
        rules:{

        },
        messages: {

        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-bPrivateRoom-edit').serialize());
        }
    }
</script>
</body>
</html>
